#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START rootfs


# depends: Python
# depends: acl
# depends: apt-repo-tools
# depends: apt-rpm
# depends: attr
# depends: autoconf
# depends: automake
# depends: bash
# depends: bc
# depends: beecrypt
# depends: binutils
# depends: bison
# depends: bzip2
# depends: cmake
# depends: common
# depends: coreutils
# depends: cpio
# depends: curl
# depends: dbus
# depends: diffutils
# depends: dosfstools
# depends: dracut
# depends: diffstat
# depends: e2fsprogs
# depends: elfutils
# depends: elinks
# depends: etc
# depends: expat
# depends: fakeroot
# depends: file
# depends: findutils
# depends: flex
# depends: fuse
# depends: fuse-nfs
# depends: gawk
# depends: gcc
# depends: gdbm
# depends: gear
# depends: gettext
# depends: git
# depends: glibc
# depends: gmp
# depends: gnu-config
# depends: gnulib
# depends: gnulib-modules-bootstrap
# depends: gperf
# depends: grep
# depends: groff
# depends: grub
# depends: gzip
# depends: hasher
# depends: hasher-priv
# depends: help2man
# depends: iana-etc
# depends: iproute2
# depends: iputils
# depends: isl
# depends: kbd
# depends: kmod
# depends: less
# depends: libcap
# depends: libdb4.7
# depends: libffi
# depends: libgcrypt
# depends: libgpg-error
# depends: libtool
# depends: libxcrypt
# depends: linux
# depends: m4
# depends: make
# depends: mkimage
# depends: mpc
# depends: mpfr
# depends: ncurses
# depends: openssh
# depends: openssl1.1
# depends: patch
# depends: pkg-config-alt
# depends: popt
# depends: procps-ng
# depends: psmisc
# depends: readline
# depends: rpm
# depends: rpm-build
# depends: rsync
# depends: sed
# depends: setproctitle
# depends: shadow
# depends: sharutils
# depends: strace
# depends: subst
# depends: systemd
# depends: tar
# depends: texinfo
# depends: util-linux
# depends: vim
# depends: xz
# depends: zlib

relocate_to_usr "$stage"
relocate_to_usr "$rootfs"


rsync -avH --link-dest="$stage" "${stage}/" "$r00tfs/"
rsync -avH --link-dest="$rootfs" "${rootfs}/" "$r00tfs/"

# RECIPE END rootfs
